<?php

// phpMyRealty 1.0
//
// File Name: tables.php
// File Location : ./templates/default/
//
// Copyright (c)2006 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

//

// COMMON CONTENT TABLE HEADER
// - this html code is added to all the content tables
// as a header by using echo table_header('Name');
function table_header ( $message )

 {

  global $cookie_template;

  $return = '

      <table border="0" cellpadding="0" cellspacing="0" width="100%">
       <tr>
        <td  height="27" colspan="3" width="100%" background="' . URL . '/templates/' . $cookie_template . '/images/x.gif" alt="" height="27">
           <span class="table_header_text"> &nbsp;'
          . $message .
         '</span>
        </td>
       </tr>
       <tr>

        <td colspan="3" valign="top" align="left" style="border : 1px solid #ACAFB8;">

         <table width="100%" cellpadding="5" cellspacing="0" border="0">
          <tr>
           <td align="left" width="100%">
  	    <br>

     ';

  return $return;

 }

// COMMON CONTENT TABLE FOOTER
// - this html code is added to all the content tables
// as a footer by using echo table_footer();

function table_footer (  )

 {

  global $cookie_template;

  $return = '

           </td>
          </tr>
         </table>

        </td>
        </td>			
       </tr>
      </table>
     <br>
     ';

  return $return;

 }


function table_header2 ( )

 {

  global $cookie_template;

  $return = '

      <table border="0" cellpadding="0" cellspacing="0" width="100%">
       <tr>
        <td valign="top" align="left" bgcolor="#EAEAEA" style="border : 1px solid #DADADA;">

         <table width="100%" cellpadding="5" cellspacing="0" border="0">
          <tr>
           <td align="left" width="100%">

     ';

  return $return;

 }

// COMMON CONTENT TABLE FOOTER
// - this html code is added to all the content tables
// as a footer by using echo table_footer();

function table_footer2 (  )

 {

  global $cookie_template;

  $return = '

           </td>
          </tr>
         </table>
        </td>
       </tr>
      </table>
     <br>
     ';

  return $return;

 }

?>